import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/authority/technical/getList',
    method: 'post',
    data: query
  })
}
export function fetchDepartmentList(query) {
  return request({
    url: '/authority/relevance/getAvailable',
    method: 'post',
    data: query
  })
}

export function fetchArticle(id) {
  return request({
    url: '/authority/technical/getDetail',
    method: 'post',
    data: { id }
  })
}

export function saveTechnical(id) {
  return request({
    url: '/authority/technical/save',
    method: 'post',
    data: id
  })
}

export function removeTechnicalByID(id) {
  return request({
    url: '/authority/technical/delete',
    method: 'post',
    data: id
  })
}

export function changeTechnicalStatusByID(formdata) {
  return request({
    url: '/authority/technical/change-status',
    method: 'post',
    data: formdata
  })
}

